﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace ASPNET.StarterKit.BusinessLogicLayer
{
    /// <summary>
    /// Summary description for GoodsReceipt
    /// </summary>
    public class GoodsReceipt
    {
        private int _SupID;
        private int _ItemCode;
        //private int _GRId;
        private int _QtyAccepted;
        private int _QtyRejected;
        private int _QtyPending;
        private int _BuyingRate;
        private string _VendorItemCode;
        private string _PONumber;

        public GoodsReceipt(
            int SupID,
            int ItemCode,
            //int GRId,
            int QtyAccepted,
            int QtyRejected,
            int QtyPending,
            int BuyingRate,
            string VendorItemCode,
            string PONumber
    )
        {
            _SupID = SupID;
            _ItemCode = ItemCode;
           // _GRId = GRId;
            _QtyAccepted = QtyAccepted;
            _QtyRejected = QtyRejected;
            _QtyPending = QtyPending;
            _BuyingRate = BuyingRate;
            _VendorItemCode = VendorItemCode;
            _PONumber = PONumber;

        }



        public int SupID
        {
            get
            {
                return _SupID;

            }
            set {
                  _SupID = value; 
            }
        }

        public int ItemCode
        {
            get { return _ItemCode; }
            set { _ItemCode = value; }
        }

        //public int GRId
        //{
        //    get { return _GRId; }
        //    set { _GRId = value; }
        //}

        public int QtyAccepted
        {
            get { return _QtyAccepted; }
            set { _QtyAccepted = value; }
        }

        public int QtyRejected
        {
            get { return _QtyRejected; }
            set { _QtyRejected = value; }
        }

        public int QtyPending
        {
            get { return _QtyPending; }
            set { _QtyPending = value; }
        }

        public int BuyingRate
        {
            get { return _BuyingRate; }
            set { _BuyingRate = value; }
        }

        public string VendorItemCode
        {
            get
            {
                if (String.IsNullOrEmpty(_VendorItemCode))
                {
                    return string.Empty;
                }
                return _VendorItemCode;

            }
            set
            {
                _VendorItemCode = value;
            }
        }

        public string PONumber
        {
            get
            {
                if (String.IsNullOrEmpty(_PONumber))
                {
                    return string.Empty;
                }
                return _PONumber;

            }
            set
            {
                _PONumber = value;
            }
        }
    }
}